home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / kde4 / config.kcfg / kopeteappearancesettings.kcfg < prev    next >
Extensible Markup Language  |  2008-05-21  |  9KB  |  230 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Author: Michal Larouche-->
  3. <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
  4.       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5.       xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
  6.       http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
  7.     <kcfgfile name="kopeterc"/>
  8.     <include>kstandarddirs.h</include>
  9.     <include>kglobalsettings.h</include>
  10.     <include>kcolorscheme.h</include>
  11.  
  12.     <!-- Define the available signals to emit -->
  13.     <signal name="appearanceChanged">
  14.         <label>Emited when the font and colors settings has changed.</label>
  15.     </signal>
  16.     <signal name="messageOverridesChanged">
  17.         <label>Emited when the message overrides settings has changed.</label>
  18.     </signal>
  19.     <signal name="contactListAppearanceChanged">
  20.         <label>Emited when the contact list appearance has changed.</label>
  21.     </signal>
  22.  
  23.     <group name="Appearance">
  24.         <!-- Emoticon config -->
  25.         <entry key="useEmoticons" type="Bool"> 
  26.             <label>Enable emoticon support in Kopete.</label>
  27.             <default>true</default>
  28.             <emit signal="contactListAppearanceChanged" />
  29.             <emit signal="messageOverridesChanged" />
  30.         </entry>
  31.         
  32.     
  33.         <!-- Hightlight preferences -->
  34.         <entry key="highlightForegroundColor" type="Color">
  35.             <label>Text color used when hightlighting</label>
  36.             <default code="true">KColorScheme(QPalette::Active, KColorScheme::Selection).foreground().color()</default>
  37.             <emit signal="appearanceChanged" />
  38.         </entry>
  39.         <entry key="highlightBackgroundColor" type="Color">
  40.             <label>Background color used when hightlighting.</label>
  41.             <default code="true">KColorScheme(QPalette::Active, KColorScheme::Selection).background().color()</default>
  42.             <emit signal="appearanceChanged" />
  43.         </entry>
  44.         
  45.         <!-- Overrides preferences -->
  46.         <entry key="chatBgOverride" type="Bool">
  47.             <label>Disable custom text color set by users.</label>
  48.             <default>false</default>
  49.             <emit signal="messageOverridesChanged" />
  50.         </entry>
  51.         <entry key="chatFgOverride" type="Bool">
  52.             <label>Disable custom background color set by users.</label>
  53.             <default>false</default>
  54.             <emit signal="messageOverridesChanged" />
  55.         </entry>
  56.         <entry key="chatRtfOverride" type="Bool">
  57.             <label>Disable rich text set by users.</label>
  58.             <default>false</default>
  59.             <emit signal="messageOverridesChanged" />
  60.         </entry>
  61.         
  62.         <!-- Color and fonts preferences -->
  63.         <entry key="chatTextColor" type="Color">
  64.             <label>Chat text color.</label>
  65.             <default code="true">KColorScheme(QPalette::Active, KColorScheme::View).foreground().color()</default>
  66.             <emit signal="appearanceChanged" />
  67.         </entry>
  68.         <entry key="chatBackgroundColor" type="Color">
  69.             <label>Chat background color.</label>
  70.             <default code="true">KColorScheme(QPalette::Active, KColorScheme::View).background().color()</default>
  71.             <emit signal="appearanceChanged" />
  72.         </entry>
  73.         <entry key="chatLinkColor" type="Color">
  74.             <label>Chat link color.</label>
  75.             <default code="true">KColorScheme(QPalette::Active, KColorScheme::Window).foreground(KColorScheme::LinkText).color()</default>
  76.             <emit signal="appearanceChanged" />
  77.         </entry>
  78.         <entry key="chatFont" type="Font">
  79.             <label>Chat font.</label>
  80.             <emit signal="appearanceChanged" />
  81.         </entry>
  82.         
  83.         <!-- Idle contact preferences -->
  84.         <entry key="idleContactColor" type="Color">
  85.             <label>Color used to identity idle contacts.</label>
  86.             <default code="true">Qt::darkGray</default>
  87.             <emit signal="contactListAppearanceChanged" />
  88.         </entry>
  89.         <entry key="greyIdleMetaContacts" type="Bool">
  90.             <label>Display a different color for idle contact.</label>
  91.             <default>true</default>
  92.             <emit signal="contactListAppearanceChanged" />
  93.         </entry>
  94.  
  95.         <!-- Tooltip content -->
  96.         <entry key="toolTipContents" type="StringList">
  97.             <label>Contact properties that contact tooltip will show.</label>
  98.             <default>FormattedName,userInfo,server,channels,FormattedIdleTime,channelMembers,channelTopic,emailAddress,homePage,onlineSince,lastOnline,statusTitle,statusMessage</default>
  99.         </entry>
  100.     </group>
  101.     
  102.     <group name="ContactList">
  103.         <!-- Contact list display preferences -->
  104.         <entry key="contactListDisplayMode" type="Enum">
  105.             <label>Contact list display mode</label>
  106.             <choices>
  107.                 <choice name="Classic"/>
  108.                 <choice name="RightAligned"/>
  109.                 <choice name="Detailed"/>
  110.             </choices>
  111.             <default>Classic</default>
  112.             <emit signal="contactListAppearanceChanged" />
  113.         </entry>
  114.         <entry key="contactListIconMode" type="Enum">
  115.             <label>Contact list icon display mode. Either the protocol icon or the contact photo.</label>
  116.             <choices>
  117.                 <choice name="IconPic" />
  118.                 <choice name="IconPhoto" />
  119.             </choices>
  120.             <default>IconPic</default>
  121.             <emit signal="contactListAppearanceChanged" />
  122.         </entry>
  123.         <entry key="contactListTreeView" type="Bool">
  124.             <label>Show contact list as a tree view.</label>
  125.             <default>true</default>
  126.             <emit signal="contactListAppearanceChanged" />
  127.         </entry>
  128.         <entry key="contactListIndentContact" type="Bool">
  129.             <label>Indent contacts if you don't show tree lines.</label>
  130.             <default>false</default>
  131.             <emit signal="contactListAppearanceChanged" />
  132.         </entry>
  133.         <entry key="contactListHideVerticalScrollBar" type="Bool">
  134.             <label>Hide the vertical scroll bar.</label>
  135.             <default>false</default>
  136.             <emit signal="contactListAppearanceChanged" />
  137.         </entry>
  138.         <entry key="groupContactByGroup" type="Bool">
  139.             <label>Group contacts by group.</label>
  140.             <default>true</default>
  141.             <emit signal="contactListAppearanceChanged" />
  142.         </entry>
  143.         <entry key="contactListUseCustomFont" type="Bool">
  144.             <label>Use custom fonts for contact list.</label>
  145.             <default>false</default>
  146.             <emit signal="contactListAppearanceChanged" />
  147.         </entry>
  148.         <entry key="contactListAutoResize" type="Bool">
  149.             <label>Automatically resize the main window.</label>
  150.             <default>false</default>
  151.             <emit signal="contactListAppearanceChanged" />
  152.         </entry>
  153.         <entry key="contactListResizeAnchor" type="Enum">
  154.             <label>Corner at which to anchor main window when auto-resizing.</label>
  155.             <choices>
  156.                 <choice name="Top"/> <!-- order is significant! -->
  157.                 <choice name="Bottom"/>
  158.             </choices>
  159.             <default>Bottom</default>
  160.             <emit signal="contactListAppearanceChanged" />
  161.         </entry>
  162.         <!-- Contact list font preferences -->
  163.         <entry key="contactListNormalFont" type="Font">
  164.             <!-- TODO: 
  165.                  QFont font = KGlobalSettings::generalFont();
  166.                  mContactListNormalFont = config->readFontEntry("NormalFont", &font);
  167.             if ( font.pixelSize() != -1 )
  168.             font.setPixelSize( (font.pixelSize() * 3) / 4 );
  169.             else
  170.         font.setPointSizeFloat( font.pointSizeFloat() * 0.75 );
  171.              -->
  172.             <label>Normal font for contact list</label>
  173.             <default code="true">KGlobalSettings::generalFont()</default>
  174.             <emit signal="contactListAppearanceChanged" />
  175.         </entry>
  176.         <entry key="contactListSmallFont" type="Font">
  177.             <label>Small font for contact list (for status message)</label>
  178.             <default code="true">KGlobalSettings::generalFont()</default>
  179.             <emit signal="contactListAppearanceChanged" />
  180.         </entry>
  181.         <entry key="groupNameColor" type="Color">
  182.             <label>Color for group name.</label>
  183.             <default code="true">Qt::darkRed</default>
  184.             <emit signal="contactListAppearanceChanged" />
  185.         </entry>
  186.         <entry key="contactListAnimateChange" type="Bool">
  187.             <label>Animate contact list on contactlist changes.</label>
  188.             <default>true</default>
  189.             <emit signal="contactListAppearanceChanged" />
  190.         </entry>
  191.         <entry key="contactListFading" type="Bool">
  192.             <label>Fade-in/Fade-out on contact status change.</label>
  193.             <default>true</default>
  194.             <emit signal="contactListAppearanceChanged" />
  195.         </entry>
  196.         <entry key="contactListFolding" type="Bool">
  197.             <label>Fold-in/Fold-out on contact status change.</label>
  198.             <default>true</default>
  199.             <emit signal="contactListAppearanceChanged" />
  200.         </entry>
  201.         <entry key="contactListAutoHide" type="Bool">
  202.             <label>Auto-hide contact list after a while.</label>
  203.             <default>false</default>
  204.             <emit signal="contactListAppearanceChanged" />
  205.         </entry>
  206.         <entry key="contactListAutoHideVScroll" type="Bool">
  207.             <label>Auto-hide vertical scrollbar in contact list after a while.</label>
  208.             <default>true</default>
  209.             <emit signal="contactListAppearanceChanged" />
  210.         </entry>
  211.         <entry key="contactListAutoHideTimeout" type="UInt">
  212.             <label>Auto-hide timeout</label>
  213.             <default>30</default>
  214.             <emit signal="contactListAppearanceChanged" />
  215.         </entry>
  216.  
  217.         <!-- Contact list appearance config -->
  218.         <entry key="showOfflineUsers" type="Bool">
  219.             <label>Show offline users in contact list.</label>
  220.             <default>true</default>
  221.             <emit signal="contactListAppearanceChanged" />
  222.         </entry>
  223.         <entry key="showEmptyGroups" type="Bool">
  224.             <label>Show empty groups in contact list.</label>
  225.             <default>false</default>
  226.             <emit signal="contactListAppearanceChanged" />
  227.         </entry>
  228.     </group>
  229. </kcfg>
  230.